package com.fs.uc.base;

import lombok.Data;

/**
 * @author 崔超
 * 2021/12/3
 */
@Data
public class MyResponse<T> {
    private T data;
    private String msg;
    private boolean success;

    public static <T> MyResponse<T> success(T data) {
        MyResponse<T> resp = new MyResponse<>();
        resp.data = data;
        resp.msg = "请求成功";
        resp.success = true;
        return resp;
    }
}